package br.com.gip.repository.persistence;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

public interface Dao<T, ID extends Serializable> {

	void insert(T entity);
	
	void update(T entity);
	
	void saveOrUpdate(T entity);
	
	void saveOrUpdateAll(Collection<T> entities);
	
	void delete(T entity);

	T findById(ID id);
	
	List<T> findAll();
	
}
